package com.mobicard.QRCodeReader;

import com.mobicard.QRCodeRW.R;

import android.app.Activity;
import android.media.AudioManager;
import android.os.Bundle;

public class ReaderCamera extends Activity {
	CameraSurface camera;
	boolean notFirst = false;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
//		camera = new CameraSurface(this);
		setContentView(R.layout.camera);
		camera = (CameraSurface) findViewById(R.id.camera_preview);
	}
	
	@Override
	protected void onPause() {
		// TODO Auto-generated method stub
		super.onPause();
		finish();
	}
	
	@Override
	protected void onResume() {
		super.onResume();
//		if(!camera.isCameraStart()&&notFirst){
			camera.onResume();
//		}
//		notFirst = true;
	}
}
